package com.taotao.sso.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 
* @ClassName: PageController 
* @Description: 页面跳转Controller
* @author 孙耀斌
* @date 2018年6月12日 下午2:00:30 
*
 */
@Controller
@RequestMapping("/user")
public class PageController {
	
	@RequestMapping("/showRegister")
	public  String showRegister() {
		return "register";
	}
	
	@RequestMapping("/showLogin")
	public  String showLogin(String redirect, Model model) {
		model.addAttribute("redirect",redirect);
		return "login";
	}
}
